package com.ruoyi.order.api;


import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.order.api.factory.RemoteCfServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = ServiceNameConstants.SERVICE_SERVICE)
public interface RemoteCfServiceService{
    @GetMapping(value = "/items/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id);

    @GetMapping(value = "/{id}")
    public AjaxResult getInfo1(@PathVariable("id") Long id);
}
